<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<base href="${pageContext.request.contextPath}/" />
<title>管理员注册</title>
<!-- 导入自定义样式 -->
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/custom.css">
<!-- 导入自定义js脚本 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/js/custom.js"></script>
<!-- 导入日期拾取器 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<center>
    <br><br><br><br><br><br><br>
    <h1>管理员注册</h1>
    <h3><font color="red">${msg}</font></h3>
	<form action="admin/insert" method="post">
		<table border="1" >
			<tr >
				<td >
					用户名：
				</td>
				<td >
					<input type="text" name="username" placeholder="用户名"  />
				</td>
			</tr>
			<tr >
				<td >
					密码：
				</td>
				<td >
					<input type="text" name="password" placeholder="密码"  />
				</td>
			</tr>
			<input type="hidden" name="role" value="admin">
			<tr>
		   		<th colspan="2"><input type="submit" value="注册"/>&nbsp;&nbsp;&nbsp;<input type="reset" value="重置"/>
		   		</th>
		   	</tr>
		   	<tr>
		   		<th colspan="2"><a href="${pageContext.request.contextPath }/login.jsp">登录</a></th>
		   	</tr>
		</table>
	</form>
</center>
</body>
</html>

